package com.ftg.learn.service.impl;

import com.ftg.learn.remote.OpenFeignRemote;
import com.ftg.learn.remote.RabcHelloRemote;
import com.ftg.learn.service.IDemo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 实现类
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/5/23 上午8:32
 */
@Service
public class DempService implements IDemo {

    @Resource
    RabcHelloRemote rabcHelloRemote;

    @Resource
    OpenFeignRemote openFeignRemote;

    @Override
    public String remoteHello() {
        return rabcHelloRemote.remoteHello();
    }

    @Override
    public String feignHello() {
        return openFeignRemote.hello();
    }

}
